<div class="container">
<div class="form-group">
  <label for="exampleInputEmail1">标题</label>
  <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="请输入标题" [(ngModel)]="singlepage.title">
  <small id="emailHelp" class="form-text text-muted">标题不要超过40个字，不要包含特殊字符</small>
</div>


<div class="form-group">
  <label for="exampleInputEmail1">描述</label>
  <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="请输入标题" [(ngModel)]="singlepage.summary">
  <small id="emailHelp" class="form-text text-muted">描述不要超过40个字，不要包含特殊字符</small>
</div>

<div class="form-group">
  <label for="exampleInputEmail1">图片</label>
  <input type="email" class="form-control" id="exampleInputEmail1" aria-describedby="emailHelp" placeholder="请输入标题" [(ngModel)]="singlepage.img">
  <input type="file" (change)="onFileChanged($event)">
  <button (click)="onUpload()">上传</button>
  <small id="emailHelp" class="form-text text-muted">请选择图片</small>
</div>


<hr>
<button class="btn btn-primary" (click)="save()" >保存</button>
<button class="btn btn-warning" (click)="goBack()" style="margin-left:5%">返回</button>


</div>